package com.xu.design;

/**
 * 懒汉模式之线程不安全
 * @author xudenghui
 * @create 2023-08-03 8:57
 **/
public class Singleton_01 {

    private static  Singleton_01 instance;

    private Singleton_01(){};


    public static Singleton_01 getInstance() {
        if (null != instance){
            return instance;
        }
        return new Singleton_01();
    }
}
